<!--{loop $_QUERY[mydata] $val}-->
<li><a href="{$_module[exchange][url]}?action=gift&giftid=$val[giftid]">$val[giftname]</a></li>
<!--{/loop}-->